<div class="panel panel-default">
	<div class="panel-heading">
		<?php 
			$this->widget('zii.widgets.CBreadcrumbs',array(
					'links'=>array(
						'后台管理',
						'修改密码'			
				)
			));
		?>
	</div>
	<div class="panel-body">
	<?php if(Yii::app()->user->hasFlash('changeSuccess')): ?>
	<div class="alert alert-warning alert-dismissible" role="alert">
		<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
		<strong><?php echo Yii::app()->user->getFlash('changeSuccess'); ?></strong>
	</div>
	<?php endif; ?>
		<?php 
		$form = $this->beginWidget('CActiveForm', array(
			'htmlOptions'=>array('class'=>'form-horizontal')
			));
		?>
			<div class="form-group">
				<?php echo $form->labelEx($model, 'username', array('class'=>'control-label col-sm-2')); ?>
				<div class="col-sm-3">
					<?php echo $form->textField($model, 'username', array( 'class'=>'form-control', 'readonly'=>'readonly', 'value'=>Yii::app()->user->name)); ?>
				</div>
			</div>
			<div class="form-group">
				<?php echo $form->labelEx($model, 'password', array('class'=>'control-label col-sm-2')); ?>
				<div class="col-sm-3">
				<?php echo $form->passwordField($model, 'password', array('class'=>'form-control')); ?>
				</div>
				<div class="col-sm-3">
				<?php echo $form->error($model, 'password'); ?>
				</div>
			</div>
			<div class="form-group">
			<?php echo $form->labelEx($model, 'newpassword', array('class'=>'control-label col-sm-2')); ?>
			<div class="col-sm-3">
			<?php echo $form->passwordField($model, 'newpassword', array('class'=>'form-control')); ?>
			</div>
			<div class="col-sm-3">
			<?php echo $form->error($model, 'newpassword'); ?>
			</div>
			</div>
			<div class="form-group">
			<?php echo $form->labelEx($model, 'renewpassword', array('class'=>'control-label col-sm-2')); ?>
			<div class="col-sm-3">
			<?php echo $form->passwordField($model, 'renewpassword', array('class'=>'form-control')); ?>
			</div>
			<div class="col-sm-3">
			<?php echo $form->error($model, 'renewpassword'); ?>
			</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-2">
				<input type="submit" value="提交" class="btn btn-default" />
				</div>
			</div>
		<?php $this->endWidget(); ?>
	</div>
</div>